Comments

Documentation Symbols

Syntax samples

#

//

/*...*/

Components

#

The pound sign signals the start of a one-line comment. ProModel will ignore any characters on the rest of the line.

//

Two forward slashes signal the start of a one-line comment. ProModel will ignore any characters on the rest of the line. This symbol works exactly the same as the # sign.

/*...*/

A slash followed by an asterisk signals the start of a multi-line comment. ProModel will ignore all characters after the "/*" until it finds an asterisk followed by a slash, "*/". Use this type of comment for long explanations and to prevent ProModel from executing long portions of logic during debugging. Comments using // or # may be nested inside multi-line comments.

Description

Comments are notes to the modeler inside blocks of logic. ProModel ignores them, but they can be particularly useful to explain logic when more than one person will be using a model.

Valid In

Any logic.

Example

The logic below has several notes to explain it. Additionally, ProModel ignores the ELSE statement and the ELSE statement’s block.

IF Parts_Available > Attr2 THEN

//Parts needed is stored in attribute 2

BEGIN

JOIN Attr2 #Join the number of parts
# needed only if there are
# enough parts available.

WAIT Attr1

END

/* ELSE

BEGIN //Start operation

INC Var1

WAIT Attr3

END */